-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Added string arrays to simple binding #63072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Thanks for your PR, @@StickFun. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks like a good start -- can you add some test coverage to RequestDelegateFactoryTests in the repo for this case?
Added unit test for handling string array |
metadata.Name == "formValues") as ParameterBindingMetadata; | ||
|
||
Assert.NotNull(parameterBindingMetadata); | ||
Assert.Equal(typeof(string[]), parameterBindingMetadata.ParameterInfo.ParameterType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update the test to send a payload in the HTTP context and verify that context.Items["form"]
is populated correctly?
Added string arrays to simple binding
Description
Fixed condition for using a string array with simple binding.
Fixes #62326